package com.chengjj.kings.modular.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author chengJJ
 * @since 2019-03-13
 */
@TableName("sys_menu")
public class Menu extends Model<Menu> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="MENU_ID", type= IdType.AUTO)
	private Long menuId;
    /**
     * 菜单编号
     */
	@TableField("CODE")
	private String code;
    /**
     * 菜单父编号
     */
	@TableField("PCODE")
	private String pcode;
    /**
     * 当前菜单的所有父菜单编号
     */
	@TableField("PCODES")
	private String pcodes;
    /**
     * 菜单名称
     */
	@TableField("NAME")
	private String name;
    /**
     * 菜单图标
     */
	@TableField("ICON")
	private String icon;
    /**
     * url地址
     */
	@TableField("URL")
	private String url;
    /**
     * 菜单排序号
     */
	@TableField("SORT")
	private Integer sort;
    /**
     * 菜单层级
     */
	@TableField("LEVELS")
	private Integer levels;
    /**
     * 是否是菜单(字典)
     */
	@TableField("MENU_FLAG")
	private String menuFlag;
    /**
     * 备注
     */
	@TableField("DESCRIPTION")
	private String description;
    /**
     * 菜单状态(字典)
     */
	@TableField("STATUS")
	private String status;
    /**
     * 是否打开新页面的标识(字典)
     */
	@TableField("NEW_PAGE_FLAG")
	private String newPageFlag;
    /**
     * 是否打开(字典)
     */
	@TableField("OPEN_FLAG")
	private String openFlag;
    /**
     * 创建时间
     */
	@TableField("CREATE_TIME")
	private Date createTime;
    /**
     * 修改时间
     */
	@TableField("UPDATE_TIME")
	private Date updateTime;
    /**
     * 创建人
     */
	@TableField("CREATE_USER")
	private Long createUser;
    /**
     * 修改人
     */
	@TableField("UPDATE_USER")
	private Long updateUser;


	public Long getMenuId() {
		return menuId;
	}

	public void setMenuId(Long menuId) {
		this.menuId = menuId;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getPcode() {
		return pcode;
	}

	public void setPcode(String pcode) {
		this.pcode = pcode;
	}

	public String getPcodes() {
		return pcodes;
	}

	public void setPcodes(String pcodes) {
		this.pcodes = pcodes;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getLevels() {
		return levels;
	}

	public void setLevels(Integer levels) {
		this.levels = levels;
	}

	public String getMenuFlag() {
		return menuFlag;
	}

	public void setMenuFlag(String menuFlag) {
		this.menuFlag = menuFlag;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getNewPageFlag() {
		return newPageFlag;
	}

	public void setNewPageFlag(String newPageFlag) {
		this.newPageFlag = newPageFlag;
	}

	public String getOpenFlag() {
		return openFlag;
	}

	public void setOpenFlag(String openFlag) {
		this.openFlag = openFlag;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Long getCreateUser() {
		return createUser;
	}

	public void setCreateUser(Long createUser) {
		this.createUser = createUser;
	}

	public Long getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(Long updateUser) {
		this.updateUser = updateUser;
	}

	@Override
	protected Serializable pkVal() {
		return this.menuId;
	}

}
